package com.test.effectivejava;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Description:
 * @Author: yangzhiwei
 * @Date: 2021/1/7 9:40
 */
public class _1StaticFactory {
    public static void main(String[] args) {

        List list = Collections.synchronizedList(new ArrayList<>());
       // SynchronizedList synchronizedList ;

        Object object = new Object();
        Object object1 = new Object();
        System.out.println(object.hashCode());
        System.out.println(object.hashCode());
        System.out.println(object == object1);
    }


}
